package com.xesj.util;

import java.util.List;

/**
 * 
* @ClassName: SendMessageUtil 
* @Description: 发短信的工具类
* @author zkl 
* @date 2016年3月24日 下午3:41:44
 */
@SuppressWarnings("all")
public class SendMessageUtil {

	public static void sendMessage(List<String> handsetList, int i,String content) {
		String content1 = content+"回T退订【万特联药业】";
		HttpClientTest httpClientTest = new HttpClientTest();
		DirectSendDTO directSendDTO = new DirectSendDTO();
		directSendDTO.setUserID(MainLocation.readlocation("account2").toString());
		directSendDTO.setAccountID(MainLocation.readlocation("sonAccount").toString());
		directSendDTO.setPassword(MainLocation.readlocation("pwd2").toString());
		directSendDTO.setPhones(handsetList.get(i));
		directSendDTO.setContent(content1);
		directSendDTO.setSendType("1");
		String status = httpClientTest
				.directSend("http://www.mxtong.net.cn/GateWay/Services.asmx/DirectSend?", directSendDTO);
	}
	
}
